package com.example.common.constant;

import lombok.Getter;

/**
 * <p>
 *      MQ消息队常量
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
public class MessageConstant {

    @Getter
    public enum MessageStatus {

        CREATE_NEW(0, "新建"),

        PERSISTENCE(1, "持久化"),

        PERSISTENCE_ERROR(2, "持久化失败"),

        SPENDING(3, "已消费"),

        SPENDING_ERROR(4, "消费失败");


        MessageStatus (int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private final int code;
        private final String msg;
    }

}
